package org.csu.webjpetstoreback.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Repository
@TableName(value = "profile")
public class Profile  {
    @TableId(value = "userid",type = IdType.AUTO)
    public String userid;
    public String la;
    public String fa;
    public int mylistopt;
    public int banneropt;

    public void setProfile(Token token){
        this.userid = token.userid;
        this.la = token.la;
        this.fa = token.fa;
        this.banneropt = token.banneropt;
        this.mylistopt = token.mylistopt;
    }


}
